using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.DBModel
{
	public partial class VSys_Menu : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _PId;
		/// <summary>
		/// PId
		/// </summary>
		[Entity(ColumnName = CNPId, IsNotNull = true)]
		public System.String PId
		{
			get { return _PId; }
			set
			{
				_PId = value;
				base.SetFieldChanged(CNPId) ;
			}
		}

		private System.String _MenuName;
		/// <summary>
		/// MenuName
		/// </summary>
		[Entity(ColumnName = CNMenuName, IsNotNull = true)]
		public System.String MenuName
		{
			get { return _MenuName; }
			set
			{
				_MenuName = value;
				base.SetFieldChanged(CNMenuName) ;
			}
		}

		private System.String _MenuUrl;
		/// <summary>
		/// MenuUrl
		/// </summary>
		[Entity(ColumnName = CNMenuUrl)]
		public System.String MenuUrl
		{
			get { return _MenuUrl; }
			set
			{
				_MenuUrl = value;
				base.SetFieldChanged(CNMenuUrl) ;
			}
		}

		private System.Int32 _MenuLevel;
		/// <summary>
		/// MenuLevel
		/// </summary>
		[Entity(ColumnName = CNMenuLevel, IsNotNull = true)]
		public System.Int32 MenuLevel
		{
			get { return _MenuLevel; }
			set
			{
				_MenuLevel = value;
				base.SetFieldChanged(CNMenuLevel) ;
			}
		}

		private System.Boolean _IsApi;
		/// <summary>
		/// IsApi
		/// </summary>
		[Entity(ColumnName = CNIsApi, IsNotNull = true)]
		public System.Boolean IsApi
		{
			get { return _IsApi; }
			set
			{
				_IsApi = value;
				base.SetFieldChanged(CNIsApi) ;
			}
		}

		private System.Boolean _IsExpand;
		/// <summary>
		/// IsExpand
		/// </summary>
		[Entity(ColumnName = CNIsExpand, IsNotNull = true)]
		public System.Boolean IsExpand
		{
			get { return _IsExpand; }
			set
			{
				_IsExpand = value;
				base.SetFieldChanged(CNIsExpand) ;
			}
		}

		private System.String _MenuIcon;
		/// <summary>
		/// MenuIcon
		/// </summary>
		[Entity(ColumnName = CNMenuIcon)]
		public System.String MenuIcon
		{
			get { return _MenuIcon; }
			set
			{
				_MenuIcon = value;
				base.SetFieldChanged(CNMenuIcon) ;
			}
		}

		private System.Boolean _IsSystem;
		/// <summary>
		/// IsSystem
		/// </summary>
		[Entity(ColumnName = CNIsSystem, IsNotNull = true)]
		public System.Boolean IsSystem
		{
			get { return _IsSystem; }
			set
			{
				_IsSystem = value;
				base.SetFieldChanged(CNIsSystem) ;
			}
		}

		private System.Boolean _IsEnable;
		/// <summary>
		/// IsEnable
		/// </summary>
		[Entity(ColumnName = CNIsEnable, IsNotNull = true)]
		public System.Boolean IsEnable
		{
			get { return _IsEnable; }
			set
			{
				_IsEnable = value;
				base.SetFieldChanged(CNIsEnable) ;
			}
		}

		private System.Int32 _OrderNo;
		/// <summary>
		/// OrderNo
		/// </summary>
		[Entity(ColumnName = CNOrderNo, IsNotNull = true)]
		public System.Int32 OrderNo
		{
			get { return _OrderNo; }
			set
			{
				_OrderNo = value;
				base.SetFieldChanged(CNOrderNo) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(ColumnName = CNRemark)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				_Remark = value;
				base.SetFieldChanged(CNRemark) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNPId = "PId";
		public const string CNMenuName = "MenuName";
		public const string CNMenuUrl = "MenuUrl";
		public const string CNMenuLevel = "MenuLevel";
		public const string CNIsApi = "IsApi";
		public const string CNIsExpand = "IsExpand";
		public const string CNMenuIcon = "MenuIcon";
		public const string CNIsSystem = "IsSystem";
		public const string CNIsEnable = "IsEnable";
		public const string CNOrderNo = "OrderNo";
		public const string CNRemark = "Remark";
		#endregion

	}
}
